<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
// import Joomla view library
jimport('joomla.application.component.view');
 
/**
 * HTML View class for the HelloWorld Component
 */
class ShopViewHome extends JView
{

	
	function display($tpl = null) 
	{
		// Assign data to the view
		$this->state = $this->get('State');
		$this->news  = $this->get('News');
		$this->sales = $this->get('Sales');
		$this->lots  = $this->get('Lots');
		$this->path_img = JURI::root().'images/image_product/';
		$this->params = &JComponentHelper::getParams( 'com_shop' );
		// Check for errors.
		if (count($errors = $this->get('Errors'))) 
		{
			JError::raiseError(500, implode('<br />', $errors));
			return false;
		}
		// Display the view
		parent::display($tpl);
	}
}